package com.yehangtech.designpattern.行为型_命令模式;

import com.yehangtech.designpattern.行为型_命令模式.service.*;

public class Main {
    public static void main(String[] args) {
        ICaiPin guangDongCai = new GuangDongCai(new GuangDongCook());
        ICaiPin SiChuanCai = new SiChuanCai(new SiChuanCook());
        XiaoEr xiaoEr = new XiaoEr();
        //模拟小二点菜
        xiaoEr.dianCai(guangDongCai);
        xiaoEr.dianCai(SiChuanCai);
        //模拟小二上菜
        xiaoEr.ShangCai();
    }
}
